import { networkpost } from "./service";
import api from "./api";

/**
 * @description: 个税信息新增
 * @param {*} params
 * @return {*}
 */
export const creditPersonalTaxAdd = (params) => {
  let url = api.creditPersonalTaxAdd;
  return networkpost(url, params);
};

/**
 * @description: 个税信息删除
 * @param {*} params
 * @return {*}
 */
export const creditPersonalTaxDelete = (params) => {
  let url = api.creditPersonalTaxDelete;
  return networkpost(url, params);
};

/**
 * @description: 个税信息详情查询
 * @param {*} params
 * @return {*}
 */
export const creditPersonalTaxDetail = (params) => {
  let url = api.creditPersonalTaxDetail;
  return networkpost(url, params);
};

/**
 * @description: 个税信息列表
 * @param {*} params
 * @return {*}
 */
export const creditPersonalTaxList = (params) => {
  let url = api.creditPersonalTaxList;
  return networkpost(url, params);
};

/**
 * @description: 公积金信息新增
 * @param {*} params
 * @return {*}
 */
export const creditProvidentFundAdd = (params) => {
  let url = api.creditProvidentFundAdd;
  return networkpost(url, params);
};

/**
 * @description: 公积金信息删除
 * @param {*} params
 * @return {*}
 */
export const creditProvidentFundDelete = (params) => {
  let url = api.creditProvidentFundDelete;
  return networkpost(url, params);
};

/**
 * @description: 公积金信息详情查询
 * @param {*} params
 * @return {*}
 */
export const creditProvidentFundDetail = (params) => {
  let url = api.creditProvidentFundDetail;
  return networkpost(url, params);
};

/**
 * @description: 公积金信息列表
 * @param {*} params
 * @return {*}
 */
export const creditProvidentFundList = (params) => {
  let url = api.creditProvidentFundList;
  return networkpost(url, params);
};

/**
 * @description: 其他负债信息新增
 * @param {*} params
 * @return {*}
 */
export const creditOtherDebtAdd = (params) => {
  let url = api.creditOtherDebtAdd;
  return networkpost(url, params);
};

/**
 * @description: 其他负债信息删除
 * @param {*} params
 * @return {*}
 */
export const creditOtherDebtDelete = (params) => {
  let url = api.creditOtherDebtDelete;
  return networkpost(url, params);
};

/**
 * @description: 其他负债信息详情查询
 * @param {*} params
 * @return {*}
 */
export const creditOtherDebtDetail = (params) => {
  let url = api.creditOtherDebtDetail;
  return networkpost(url, params);
};

/**
 * @description: 其他负债信息列表
 * @param {*} params
 * @return {*}
 */
export const creditOtherDebtList = (params) => {
  let url = api.creditOtherDebtList;
  return networkpost(url, params);
};

/**
 * @description: 参与人信息新增
 * @param {*} params
 * @return {*}
 */
export const perRechPlayersEntityAdd = (params) => {
  let url = api.perRechPlayersEntityAdd;
  return networkpost(url, params);
};

/**
 * @description: 参与人信息删除
 * @param {*} params
 * @return {*}
 */
export const perRechPlayersEntityDelete = (params) => {
  let url = api.perRechPlayersEntityDelete;
  return networkpost(url, params);
};

/**
 * @description: 参与人信息详情查询
 * @param {*} params
 * @return {*}
 */
export const perRechPlayersEntityDetail = (params) => {
  let url = api.perRechPlayersEntityDetail;
  return networkpost(url, params);
};

/**
 * @description: 参与人信息列表
 * @param {*} params
 * @return {*}
 */
export const perRechPlayersEntityList = (params) => {
  let url = api.perRechPlayersEntityList;
  return networkpost(url, params);
};

/**
 * @description: 参与人授权短信
 * @param {*} params
 * @return {*}
 */
export const perRechPlayersEntitySendSms = (params) => {
  let url = api.perRechPlayersEntitySendSms;
  return networkpost(url, params);
};

/**
 * @description: 我的订单
 * @param {*} params
 * @return {*}
 */
export const myOrder = (params) => {
  let url = api.myOrder;
  return networkpost(url, params);
};

/**
 * @description: 客户经理待办
 * @param {*} params
 * @return {*}
 */
export const commission = (params) => {
  let url = api.commission;
  return networkpost(url, params);
};

/**
 * @description: 客户经理动态二维码
 * @param {*} params
 * @return {*}
 */
export const dynamicQRCode = (params) => {
  let url = api.dynamicQRCode;
  return networkpost(url, params);
};

/**
 * @description: 客户经理首页个人信息
 * @param {*} params
 * @return {*}
 */
export const personage = (params) => {
  let url = api.personage;
  return networkpost(url, params);
};

/**
 * @description: 客户经理更改密码
 * @param {*} params
 * @return {*}
 */
export const updatePassword = (params) => {
  let url = api.updatePassword;
  return networkpost(url, params);
};

/**
 * @description: 客户经理登录
 * @param {*} params
 * @return {*}
 */
export const login = (params) => {
  let url = api.login;
  return networkpost(url, params);
};

/**
 * @description: 客户经理发送短信验证码
 * @param {*} params
 * @return {*}
 */
export const sendSmsCode = (params) => {
  let url = api.sendSmsCode;
  return networkpost(url, params);
};

/**
 * @description: 房产信息新增
 * @param {*} params
 * @return {*}
 */
export const creditHouseAdd = (params) => {
  let url = api.creditHouseAdd;
  return networkpost(url, params);
};

/**
 * @description: 房产信息删除
 * @param {*} params
 * @return {*}
 */
export const creditHouseDelete = (params) => {
  let url = api.creditHouseDelete;
  return networkpost(url, params);
};

/**
 * @description: 房产信息详情查询
 * @param {*} params
 * @return {*}
 */
export const creditHouseDetail = (params) => {
  let url = api.creditHouseDetail;
  return networkpost(url, params);
};

/**
 * @description: 房产信息列表
 * @param {*} params
 * @return {*}
 */
export const creditHouseList = (params) => {
  let url = api.creditHouseList;
  return networkpost(url, params);
};

/**
 * @description: 社保信息新增
 * @param {*} params
 * @return {*}
 */
export const creditSocialSecurityAdd = (params) => {
  let url = api.creditSocialSecurityAdd;
  return networkpost(url, params);
};

/**
 * @description: 社保信息删除
 * @param {*} params
 * @return {*}
 */
export const creditSocialSecurityDelete = (params) => {
  let url = api.creditSocialSecurityDelete;
  return networkpost(url, params);
};

/**
 * @description: 社保信息详情查询
 * @param {*} params
 * @return {*}
 */
export const creditSocialSecurityDetail = (params) => {
  let url = api.creditSocialSecurityDetail;
  return networkpost(url, params);
};

/**
 * @description: 社保信息列表
 * @param {*} params
 * @return {*}
 */
export const creditSocialSecurityList = (params) => {
  let url = api.creditSocialSecurityList;
  return networkpost(url, params);
};

/**
 * @description: 面谈信息新增
 * @param {*} params
 * @return {*}
 */
export const creditSceneInspectAdd = (params) => {
  let url = api.creditSceneInspectAdd;
  return networkpost(url, params);
};

/**
 * @description: 面谈信息提交审批
 * @param {*} params
 * @return {*}
 */
export const creditSceneInspectToApprove = (params) => {
  let url = api.creditSceneInspectToApprove;
  return networkpost(url, params);
};

/**
 * @description: 生成批复并发送借款合同短信
 * @param {*} params
 * @return {*}
 */
export const createApproveByOrderId = (params) => {
  let url = api.createApproveByOrderId;
  return networkpost(url, params);
};

/**
 * @description: 代办展示
 * @param {*} params
 * @return {*}
 */
export const creditSceneInspectDetail = (params) => {
  let url = api.creditSceneInspectDetail;
  return networkpost(url, params);
};

/**
 * @description: 面谈信息保存
 * @param {*} params
 * @return {*}
 */
export const creditSceneInspectSave = (params) => {
  let url = api.creditSceneInspectSave;
  return networkpost(url, params);
};

/**
 * @description: 校验卡号
 * @param {*} params
 * @return {*}
 */
export const creditSceneInspectCheckCard = (params) => {
  let url = api.creditSceneInspectCheckCard;
  return networkpost(url, params);
};

/**
 * @description: 查询政务数据接口
 * @param {*} params
 * @return {*}
 */
export const creditSceneInspectCheckGovtAffairs = (params) => {
  let url = api.creditSceneInspectCheckGovtAffairs;
  return networkpost(url, params);
};

/**
 * @description: 发送签署短信
 * @param {*} params
 * @return {*}
 */
export const creditSceneInspectSendSms = (params) => {
  let url = api.creditSceneInspectSendSms;
  return networkpost(url, params);
};

/**
 * @description: 获取openid
 * @param {*} params
 * @return {*}
 */
export const getOpenid = (params) => {
  let url = api.getOpenid;
  return networkpost(url, params);
};

/**
 * @description: 校验短信验证码
 * @param {*} params
 * @return {*}
 */
export const checkSmsCode = (params) => {
  let url = api.checkSmsCode;
  return networkpost(url, params);
};

/**
 * @description: 客户实名提交--ocr
 * @param {*} params
 * @return {*}
 */
export const realNameAuth = (params) => {
  let url = api.realNameAuth;
  return networkpost(url, params);
};

/**
 * @description: 发送短信验证码
 * @param {*} params
 * @return {*}
 */
export const guarantorSendSmsCode = (params) => {
  let url = api.guarantorSendSmsCode;
  return networkpost(url, params);
};

/**
 * @description: 文件上传
 * @param {*} params
 * @return {*}
 */
export const uploadFile = (params) => {
  let url = api.uploadFile;
  return networkpost(url, params);
};

/**
 * @description: 文件查询
 * @param {*} params
 * @return {*}
 */
export const queryFile = (params) => {
  let url = api.queryFile;
  return networkpost(url, params);
};

/**
 * @description: 合同列表
 * @param {*} params
 * @return {*}
 */
export const contractList = (params) => {
  let url = api.contractList;
  return networkpost(url, params);
};

/**
 * @description: 授信保存
 * @param {*} params
 * @return {*}
 */
export const creditSave = (params) => {
  let url = api.creditSave;
  return networkpost(url, params);
};

/**
 * @description: 获取微信code
 * @return {*}
 */
export const wxCode = () => {
  return new Promise((resolve, reject) => {
    wx.login({
      success: (res) => {
        resolve(res.code);
      },
      fail: (err) => {
        reject(err);
      },
    });
  });
};
